package co.yiiu.pybbs.util.jwt;

import lombok.Data;

import java.util.HashMap;

/**
 * JwtPayLoad部分
 *
 * @author xuyuxiang
 * @date 2020/3/12 17:41
 */
@Data
public class JwtPayLoad {

    /**
     * 用户名
     */
    private String username;

    /**
     * 邮件
     */
    private String email;

    public static void main(String[] args) {

        HashMap<String, Object> stringObjectHashMap = new HashMap<>();
        stringObjectHashMap.put("username", "aabbccdd");
        stringObjectHashMap.put("email", "laofeng911@126.com");

        String aNull = JwtTokenUtil.generateToken("aabbccdd", stringObjectHashMap, "123123123", 60000);
        System.out.println(aNull);
    }

}
